package com.lzl.consumer.web;

import com.lzl.doublecommon.service.TestService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author:l
 * @Date:2022.03.01
 */
@RestController
public class TestController {

    @DubboReference
    private TestService testService;

    @RequestMapping("test")
    public String test(){
        return testService.test();
    }

    @RequestMapping("login")
    public String login(String username,String password){
        return testService.login(username,password);
    }
}
